package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.SubcontractReceipt;
import com.pureut.storage.dto.AndroidPdaDto;
import com.pureut.storage.dto.AndroidPdaViewDto;
import com.pureut.storage.dto.SubcontractPurchaseReceiptExportDto;
import com.pureut.storage.dto.SubcontractReceiptDto;
import com.pureut.storage.vo.SubcontractReceiptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 *
 * Author:C
 * Date:2022/12/27 16:36
 * @DESC
 */
@Mapper
public interface SubcontractReceiptMapper extends BaseMapper<SubcontractReceipt> {

    /**
     * 委外入库列表
     */
    List<SubcontractReceiptDto> getSubcontractList(SubcontractReceiptVo subcontractReceiptVo);

    /**
     * 根据id获取数据
     */
    SubcontractReceiptDto getSubcontractById(Long id);

    /**
     * 委外入库列表(手持pda)
     */
    List<AndroidPdaDto> getSubcontractAndroidList(Long deptId);

    /**
     * 根据id获取数据(手持pda)
     */
    AndroidPdaViewDto getSubcontractByIdAndroid(long id);

    /**
     * 根据多个id获取数据
     */
    List<SubcontractPurchaseReceiptExportDto> getDataByIdStr(@Param("idList") List<String> idList);

    /**
     * 委外入库列表(导出查询)
     */
    List<SubcontractPurchaseReceiptExportDto> getSubcontractListOut(SubcontractReceiptVo subcontractReceiptVo);
}
